package qe.spider.cfg;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class Factor {
    private Integer id;
    private String date;
    private String name;
    @SerializedName(value = "top", alternate = "jingETopN")
    private Integer ziJinJingETopN = 30;        //个股资金净额排名前30
    private Integer jingLiangTopN = 20;         //个股主力净量排名前20
    private Double zhuLiJingLiang = 0.004;      //主力净量 >= 该值
    private Double zhuBuyZhanBi = 0.28;         //主力买入成交占比 >= 该值
    private Double zhuSellZhanBi = 0.2;         //主力卖出成交占比 <= 该值
    private Double zhuLiJingE = 0.0;            //主力净额 >= 该值（单位：亿）
    private Double shiJiLiuTongZhi = 20.0;      //实际流通 >= 该值（单位：亿）
    private Double shiJiHuanShouLv = 0.01;      //换手率>=该值
    private Boolean excludeZhangDieTingLatest = Boolean.FALSE;  //排除5日涨跌停的个股（gubit查股网数据）
    private Boolean excludeAlreadyUpLimit = Boolean.TRUE;   //排除已涨停的个股
    private Integer plateJingETopN = 5;         //板块净额前5
    private Integer plateJingE = 1;             //板块净额 >= 该值（单位：亿）
    private Integer plateZhangFuTopN = 5;      //板块涨幅前5
    private Double plateZhangFu = 0.0;          //板块涨幅>=该值
    private Integer plateZhangSuTopN = 20;      //板块涨速前20
    private Double plateZhangSu = 0.0;          //板块涨速>=该值
    private Double upZhangFu = 0.0;             //上榜涨幅应大于等于该值，否则不上榜
    //以下主要从同花顺交易软件上获取数据，找到数据的情况下才筛选
    private Integer xianShou = 3000;            //现手大笔买入>=3000
    private Boolean xianShouZhang = Boolean.TRUE;   //现手箭头朝上
    private Double liangBi = 2.0;               //量比>=该值
    private Double zhangSu4min = 0.0;           //4分钟涨速（略去百分号）>=该值
    private Integer zhangTingCnt = 0;           //5日涨停次数<=该值
    private Integer dieTingCnt = 5;             //5日跌停次数<=该值
    private Boolean liHao = Boolean.TRUE;       //利好=该值
    private Boolean liKong = Boolean.FALSE;     //利空=该值
    private Integer renQiTop = 5;               //市场人气排名前5
    private Boolean excludeZhaBan = Boolean.TRUE;  //排除炸板
    private Double priceLower = 3.0;    //价格下限 >= 该值
    private Double priceUpper = 20.0;    //价格上限 <= 该值
    private Double shiJiLiuTongZhiUpper = 100.0;    //实际流通值上限 <=该值（单位：亿）
    private Integer poolValidDays = 1;  //股票池的最大有效天数，0为当日有效，负数为不用股票池
    private Boolean onlyUseTHS = false;  //是否只用同花顺数据
    private Boolean uptoZhangTing = false;  //当前价达到涨停价
    private Others others = Others.builder().build();
}




























